<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>物流信息详情</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    </style>
    <script src="../js/jquery-1.6.2.min.js" type="text/javascript"></script>
</head>
<body >    
	<input type=button onclick="testJsVisitResteasy()" value="点击">
</body>

<script>

function testJsVisitResteasy() {

	var params = {"commodityID":"4","mc":"蓝晶科技"};
	$.ajax({
			type : 'post',
			url : 'http://localhost:8080/zjf_system/rest/weixin/webchat_users',
			data : params, // 传给action的参数
			async:false,
			success : function(data) { 
				//将json字符串转为json对象
				var obj = eval('('+ data +')');
				if(obj.err_code=="0"){
	 				mini.alert(obj.err_msg,"提示",cancelRow);
				}else{
					mini.alert(obj.err_msg,"提示",cancelRow);
				}
			},
			error: function(XMLHttpRequest, textStatus, errorThrown) {
				 alert(XMLHttpRequest.status);
				 alert(XMLHttpRequest.responseText);
//				 alert(textStatus);
			}
		});
}

</script>
</html>
